Replace some assert_throws('Something', stuff) calls with assert_throws_dom. (#21392) This diff was generated by running: find . -type f -print0 | xargs -0 perl -pi -e "BEGIN { \$/ = undef; } s/assert_throws\(([ \n]*'[A-Za-z_]*') *(, *.)/assert_throws_dom(\1\2/gs" in bash (doesn't work in tcsh, due to the $ inside ""). This does affect indentation poorly in cases when the first arg was on the same line as the assert_throws, there was a newline after the ',' after the first arg, and the following args were lined up with the first arg. Fixing that, especially when there are multiple lines after the first arg, is not trivial with a regexp. Co-authored-by: Boris Zbarsky <bzbarsky@mit.edu> diff --git a/webrtc/RTCConfiguration-bundlePolicy.html b/webrtc/RTCConfiguration-bundlePolicy.html index 83517db..e825d7b 100644 --- a/webrtc/RTCConfiguration-bundlePolicy.html +++ b/webrtc/RTCConfiguration-bundlePolicy.html
@@ -107,7 +107,7 @@ const pc = new RTCPeerConnection({ bundlePolicy: 'max-bundle' }); assert_idl_attribute(pc, 'setConfiguration'); - assert_throws('InvalidModificationError', () => + assert_throws_dom('InvalidModificationError', () => pc.setConfiguration({ bundlePolicy: 'max-compat' })); }, `setConfiguration({ bundlePolicy: 'max-compat' }) with initial bundlePolicy max-bundle should throw InvalidModificationError`); @@ -116,7 +116,7 @@ assert_idl_attribute(pc, 'setConfiguration'); // the default value for bundlePolicy is balanced - assert_throws('InvalidModificationError', () => + assert_throws_dom('InvalidModificationError', () => pc.setConfiguration({})); }, `setConfiguration({}) with initial bundlePolicy max-bundle should throw InvalidModificationError`);